<#assign className = table.className>   
<#assign classNameLower = className?uncap_first> 
<#assign remark = table.remarks>
<#assign primaryKeyColumn = table.primaryKeyColumn>
/**
 * ${className}服务接口
 * @author yanwl
 * @date ${.now?string("yyyy-MM-dd hh:mm:ss")}
*/
package ${basepackage}.service;

import ${basepackage}.model.pojo.${className};
import java.util.List;
import java.util.Map;

public interface ${className}Service {
	/**
	 * 添加 ${className}
	 * @param ${classNameLower} ${remark}
	 * @return boolean
	 */
	boolean insert${className}(${className} ${classNameLower});
	
	/**
	 * 删除 ${className}
	 * @param ${primaryKeyColumn.columnName}
	 * @return boolean
	 */
	boolean delete${className}(${primaryKeyColumn.javaType} ${primaryKeyColumn.columnName});
	
	/**
	 * 更新${remark}
	 * @param ${classNameLower} ${remark}
	 * @return boolean
	 */
	boolean update${className}(${className} ${classNameLower});
	
	/**
	 * 根据主键查询${className}
	 * @param ${primaryKeyColumn.columnName}
	 * @return ${classNameLower}
	 */
	${className} select${className}ByPrimaryKey(${primaryKeyColumn.javaType} ${primaryKeyColumn.columnName});
	
	/**
	 * 查询${className}列表
	 * @return 返回list列表
	 */
	List<${className}> selectAll${className}s();
	
	/**
	 * 查询${className}总数
	 * @return int 
	 */
	int select${className}TotalRows();
}